import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/airport/maintenance/maintenancePage',
    method: 'get',
    params: query
  })
}
export function getObj(id) {
  return request({
    url: '/airport/maintenance/getMaintenanceById/' + id,
    method: 'get'
  })
}

// 获取航站楼
export function getRegionByPid(pid) {
  return request({
    url: '/airport/region/getRegionByPid/' + pid,
    method: 'get'
  })
}

// 获取区域
export function getRegionByCode(code) {
  return request({
    url: '/airport/region/getRegionByCode/' + code,
    method: 'get'
  })
}

// 获取类别
export function allCategory() {
  return request({
    url: '/airport/category/allCategory',
    method: 'get'
  })
}
